﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
</head>
<body>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"> </script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js" type="text/javascript"> </script>
    <LINK type="text/css" href="http://my-soc-gadgets.googlecode.com/svn/trunk/my-soc-gadgets/Gadgets/css/sunny/jquery-ui-1.8.12.custom.css" rel="stylesheet" />	
    <LINK type="text/css" href="http://my-soc-gadgets.googlecode.com/svn/trunk/my-soc-gadgets/Gadgets/css/sunny/special.css" rel="stylesheet" />

    <script>
        $(function () {
            $("#accordion").accordion();
        });
    </script>

    <div id="content_div"></div>
    <div id="debug_div"></div>

    <div id="accordion">
	    <h3><a href="#">Section 1</a></h3>
	    <div>
		    <p>
		    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
		    ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
		    amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
		    odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
		    </p>
	    </div>
	    <h3><a href="#">Section 2</a></h3>
	    <div>
		    <p>
		    Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
		    purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
		    velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
		    suscipit faucibus urna.
		    </p>
	    </div>
	    <h3><a href="#">Section 3</a></h3>
	    <div>
		    <p>
		    Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
		    Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
		    ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
		    lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
		    </p>
		    <ul>
			    <li>List item one</li>
			    <li>List item two</li>
			    <li>List item three</li>
		    </ul>
	    </div>
	    <h3><a href="#">Section 4</a></h3>
	    <div>
		    <p>
		    Cras dictum. Pellentesque habitant morbi tristique senectus et netus
		    et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
		    faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
		    mauris vel est.
		    </p>
		    <p>
		    Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
		    Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
		    inceptos himenaeos.
		    </p>
	    </div>
    </div>

    <script type="text/javascript">
        var prefs = new gadgets.Prefs();

        var debug = 1;
        var debug_html = "";
        var content_html = "";

        function OnGadgetLoad() {
            print("DEBUG: Hello World!");

            content_html += today.toDateString();
            // Write content HTML to div
            document.getElementById("content_div").innerHTML = content_html;  
        } 
        
        // Outputs debug messages if debug flag has a non-zero value
        function print(msg) {
            if (debug) {
                debug_html += msg;
                // Write debug HTML to div
                document.getElementById("debug_div").innerHTML = debug_html;
            }
        }


    </script>
</body>
</html>
